package com.example.emailWeb.Socket.SimpleDemo;

import com.example.emailWeb.Socket.chat.Receive;
import com.example.emailWeb.Socket.chat.Send;

import java.io.IOException;
import java.net.Socket;

public class ClientRequest {
    /**
     *
     */

    public static void main(String[] args) throws IOException {
        Socket client = new Socket("localhost",5671);
        DataBuffer dataBuffer = new DataBuffer();
        dataBuffer.setFileOwner("Owner");
        dataBuffer.setFileRequest("Requester");
        dataBuffer.setKeyOrder(1);
//        dataBuffer.setStop(true);
//        dataBuffer.setSendOther();
        dataBuffer.setMsg("bye!");
        SenderDataBuffer senderDataBuffer = new SenderDataBuffer(client,dataBuffer);
    }
}
